﻿/*
 * 作者: 谢中涞,博客园:http://www.cnblogs.com/xie-zhonglai
 * 欢迎转载,但请保留出处
 * */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Xiezl.Common.EFExpressions
{
    /// <summary>
    /// 指示一个空的查询表达式
    /// </summary>
    public class EmptyEFExpression<T> : EFExpression<T> where T : class
    {
        public override System.Linq.Expressions.Expression<Func<T, bool>> GetExpression()
        {
            return (Expression<Func<T, bool>>)(f => true);
        }

        internal override Expression Expression
        {
            get { return null; }
        }
    }
}
